{template header}
<div class="bs-docs-example" style="clear:both;">
    <table class="table table-striped">
        <thead>
        <tr>
            <th>用户ID</th>
            <th>用户</th>
            <th>注册日期</th>
            <th>手机号</th>
            <th>性别</th>
            <th>年龄</th>
            <th width="400">操作</th>
        </tr>
        </thead>
        <tbody>
        <form id="batchActForm" class="form-horizontal" method="post" action="index.php?c=admin&a=batchUser">
            {loop $info $k $v}
            <tr>
                <td>
                    {$v['uid']}
                </td>
                <td>
                    <a href="#header_{$k}" data-toggle="modal">
                        <image src="{$v['header']}" width="30" height="30" />
                    </a>
                    <a class="btn btn-link" href="?c=admin&a=userinfo&uid=$v['uid']" target="_blank">{$v['nickname']}</a>
                </td>

                <div id="header_{$k}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h3 id="myModalLabel">头像大图</h3>
                    </div>
                    <div class="modal-body" style="height:700px;">
                        <img src="{$v['header']}">
                    </div>

                </div>
                <td>{eval echo date('Y-m-d H:i:s', $v['addtime'])}</td>
                <td>{eval echo $v['phone']}</td>
                <td>{if $v['gender'] == 1}男{elseif $v['gender'] == 2}女{else}保密{/if}</td>
                <td>{eval echo $v['age'] > 100 ? (date("Y") - $v['age']):$v['age']}岁</td>
                <td>
                    <a class="btn btn-primary" href="index.php?c=admin&a=addRobot&uid={$v['uid']}">编辑</a>
                    <a class="btn btn-danger" href="?c=admin&a=delUser&uid=$v['uid']" target="_blank" onclick="return confirm('Are you sure?')">删除用户</a>
                </td>
            </tr>
            {/loop}
        </form>
        </tbody>
    </table>
</div>

<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>

<script type="text/javascript">
    function showSubButton(val)
    {
        if(val != '')
        {
            $("#subButton").css("display","block");
        }
        else{
            $("#subButton").css("display","none");
        }
        return;
    }
</script>
<!-- <iframe src="../index.php?c=admin&&a=showTable" scrolling="no" width="100%" height="100%" frameborder="0"> -->

{template footer}